﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConditionalRefact
{
    class Program
    {
        static void Main(string[] args)
        {
            bool isPeeled = potato.IsItPeeled;
            bool isRotten = potato.IsRotten;
            Potato potato = new Potato();
            // ...
            if (potato != null)
            {
                if (isPeeled && !isRotten)
                {
                    Cook(potato);
                }
            }


            if (IsInRange(x, MIN_X, MAX_X) && IsInRange(y, MIN_Y, MAX_Y) && !visited[x, y])
            {
                VisitCell(x, y);
            }
        }
    }
}
